-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[feat]: prompt stashing #6021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat]: prompt stashing #6021
Conversation
172af51 to
e19ad38
Compare
|
/review |
| import { createStore, produce } from "solid-js/store" | ||
| import { clone } from "remeda" | ||
| import { createSimpleContext } from "../../context/helper" | ||
| import { appendFile, writeFile } from "fs/promises" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Consider using Bun.write() instead of writeFile from fs/promises to align with the style guide preference for Bun APIs. This would also simplify error handling since Bun.write returns a promise that handles errors more gracefully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh this matches pattern that history.tsx uses, so dw about it
Merged upstream dev changes into my_dev job system branch. Conflicts resolved: - sidebar.tsx: Combined job system UI with upstream TodoItem and MCP count helpers - compaction.ts: Kept InvalidTool + added upstream prompt replacement feature - retry.test.ts: Kept both test suites (socket error + ECONNRESET tests) Upstream features merged: - Prompt stashing (anomalyco#6021) - Did you know tips (anomalyco#5982) - MCP OAuth debug command (anomalyco#5980) - Cloudflare AI Gateway (anomalyco#5174) - Install CLI flags (anomalyco#5885) - Windows CRLF grep fix (anomalyco#5948) - Dialog keybind blocking fix (anomalyco#6017) - Model filtering fix (anomalyco#6053)
Some times you have something in your input that you need to preserve but have to send something else before sending it. Prompt stashing allows you to save it.
Screen.Recording.2025-12-23.at.8.07.13.AM.mov
Adds 3 commands,
Matches the prompt history pattern, this could be made more reusable but outside scope of this PR
Reorders store to happen before command.register due to not initializing store before reading from it